//
//  MasterCollectionViewCell.m
//  TextApplication
//
//  Created by dllo on 16/8/30.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "MasterCollectionViewCell.h"
#import "TAMacro.h"

@implementation MasterCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _picImageView = [[UIImageView alloc] init];
        _nameLabel = [[UILabel alloc] init];
        _jobLabel = [[UILabel alloc] init];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    _picImageView.frame = CGRectMake(5, 5, CONTENTWIDTH - 10, CONTENTHEIGHT - 50);
    [self.contentView addSubview:_picImageView];
    _nameLabel.frame = CGRectMake(5, CONTENTHEIGHT - 45, CONTENTWIDTH - 10, 30);
    _nameLabel.font = [UIFont systemFontOfSize:14];
    _nameLabel.textColor = [UIColor whiteColor];
    [self.contentView addSubview:self.nameLabel];
    _jobLabel.frame = CGRectMake(5, CONTENTHEIGHT - 25, CONTENTWIDTH - 10, 20);
    _jobLabel.font = [UIFont systemFontOfSize:10];
    _jobLabel.textColor = [UIColor grayColor];
    [self.contentView addSubview:self.jobLabel];
}



@end
